﻿using System;
using MongoDB.Bson;

namespace QuotationService.HistoryQuotation
{
    /// <summary>
    /// 日线的历史数据类
    /// </summary>
    internal class StockDailyData
    {
        public ObjectId _id;

        #region 属性（数据）

        /// <summary>
        /// 交易日（分钟，格式yyyyMMdd）
        /// </summary>
        public Int32 TradeDay { get; set; }

        /// <summary>
        /// 商品代码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 开盘价
        /// </summary>
        public double OpenPrice { get; set; }

        /// <summary>
        /// 最高成交价
        /// </summary>
        public double HighPrice { get; set; }

        /// <summary>
        /// 最低成交价
        /// </summary>
        public double LowPrice { get; set; }

        /// <summary>
        /// 收盘价
        /// </summary>
        public double ClosePrice { get; set; }

        /// <summary>
        /// 总量
        /// </summary>
        public Int64 TotalKnockQty { get; set; }

        /// <summary>
        /// 总成交金额
        /// </summary>
        public double TotalKnockAmt { get; set; }

        /// <summary>
        /// IOPV
        /// </summary>
        public double IOPV { get; set; }

        /// <summary>
        /// 昨收盘价
        /// </summary>
        public double PreClosePrice { get; set; }

        #endregion

    }
}
